package org.icnmasjid.member.model;
// Generated Dec 6, 2008 9:23:44 PM by Hibernate Tools 3.1.0.beta4



/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="icndata"
 *     
 */

public class Icndata extends org.icnmasjid.member.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private String lastName;
    private String husbandName;
    private String wifeName;
    private String address1;
    private String address2;
    private String city;
    private String state;
    private String zip;
    private String email;
    private String spouseEmail;
    private String email2;
    private String homePhone;
    private String cellPhone;
    private String workPhone;
    private String faxPhone;
    private String duesPaid;
    private Integer duplicateId;
    private String duplicateType;
    private String sourceType;
    private Integer sourceId;


    // Constructors

    /** default constructor */
    public Icndata() {
    }

	/** minimal constructor */
    public Icndata(String lastName) {
        this.lastName = lastName;
    }
    
    /** full constructor */
    public Icndata(String lastName, String husbandName, String wifeName, String address1, String address2, String city, String state, String zip, String email, String spouseEmail, String email2, String homePhone, String cellPhone, String workPhone, String faxPhone, String duesPaid, Integer duplicateId, String duplicateType, String sourceType, Integer sourceId) {
        this.lastName = lastName;
        this.husbandName = husbandName;
        this.wifeName = wifeName;
        this.address1 = address1;
        this.address2 = address2;
        this.city = city;
        this.state = state;
        this.zip = zip;
        this.email = email;
        this.spouseEmail = spouseEmail;
        this.email2 = email2;
        this.homePhone = homePhone;
        this.cellPhone = cellPhone;
        this.workPhone = workPhone;
        this.faxPhone = faxPhone;
        this.duesPaid = duesPaid;
        this.duplicateId = duplicateId;
        this.duplicateType = duplicateType;
        this.sourceType = sourceType;
        this.sourceId = sourceId;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="id"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="last_name"
     *             length="100"
     *             not-null="true"
     *         
     */

    public String getLastName() {
        return this.lastName;
    }
    
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
    /**       
     *      *            @hibernate.property
     *             column="husband_name"
     *             length="100"
     *         
     */

    public String getHusbandName() {
        return this.husbandName;
    }
    
    public void setHusbandName(String husbandName) {
        this.husbandName = husbandName;
    }
    /**       
     *      *            @hibernate.property
     *             column="wife_name"
     *             length="100"
     *         
     */

    public String getWifeName() {
        return this.wifeName;
    }
    
    public void setWifeName(String wifeName) {
        this.wifeName = wifeName;
    }
    /**       
     *      *            @hibernate.property
     *             column="address1"
     *             length="200"
     *         
     */

    public String getAddress1() {
        return this.address1;
    }
    
    public void setAddress1(String address1) {
        this.address1 = address1;
    }
    /**       
     *      *            @hibernate.property
     *             column="address2"
     *             length="200"
     *         
     */

    public String getAddress2() {
        return this.address2;
    }
    
    public void setAddress2(String address2) {
        this.address2 = address2;
    }
    /**       
     *      *            @hibernate.property
     *             column="city"
     *             length="100"
     *         
     */

    public String getCity() {
        return this.city;
    }
    
    public void setCity(String city) {
        this.city = city;
    }
    /**       
     *      *            @hibernate.property
     *             column="state"
     *             length="2"
     *         
     */

    public String getState() {
        return this.state;
    }
    
    public void setState(String state) {
        this.state = state;
    }
    /**       
     *      *            @hibernate.property
     *             column="zip"
     *             length="10"
     *         
     */

    public String getZip() {
        return this.zip;
    }
    
    public void setZip(String zip) {
        this.zip = zip;
    }
    /**       
     *      *            @hibernate.property
     *             column="email"
     *             length="100"
     *         
     */

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    /**       
     *      *            @hibernate.property
     *             column="spouse_email"
     *             length="100"
     *         
     */

    public String getSpouseEmail() {
        return this.spouseEmail;
    }
    
    public void setSpouseEmail(String spouseEmail) {
        this.spouseEmail = spouseEmail;
    }
    /**       
     *      *            @hibernate.property
     *             column="email2"
     *             length="100"
     *         
     */

    public String getEmail2() {
        return this.email2;
    }
    
    public void setEmail2(String email2) {
        this.email2 = email2;
    }
    /**       
     *      *            @hibernate.property
     *             column="home_phone"
     *             length="100"
     *         
     */

    public String getHomePhone() {
        return this.homePhone;
    }
    
    public void setHomePhone(String homePhone) {
        this.homePhone = homePhone;
    }
    /**       
     *      *            @hibernate.property
     *             column="cell_phone"
     *             length="100"
     *         
     */

    public String getCellPhone() {
        return this.cellPhone;
    }
    
    public void setCellPhone(String cellPhone) {
        this.cellPhone = cellPhone;
    }
    /**       
     *      *            @hibernate.property
     *             column="work_phone"
     *             length="100"
     *         
     */

    public String getWorkPhone() {
        return this.workPhone;
    }
    
    public void setWorkPhone(String workPhone) {
        this.workPhone = workPhone;
    }
    /**       
     *      *            @hibernate.property
     *             column="fax_phone"
     *             length="100"
     *         
     */

    public String getFaxPhone() {
        return this.faxPhone;
    }
    
    public void setFaxPhone(String faxPhone) {
        this.faxPhone = faxPhone;
    }
    /**       
     *      *            @hibernate.property
     *             column="dues_paid"
     *             length="20"
     *         
     */

    public String getDuesPaid() {
        return this.duesPaid;
    }
    
    public void setDuesPaid(String duesPaid) {
        this.duesPaid = duesPaid;
    }
    /**       
     *      *            @hibernate.property
     *             column="duplicate_id"
     *             length="11"
     *         
     */

    public Integer getDuplicateId() {
        return this.duplicateId;
    }
    
    public void setDuplicateId(Integer duplicateId) {
        this.duplicateId = duplicateId;
    }
    /**       
     *      *            @hibernate.property
     *             column="duplicate_type"
     *             length="20"
     *         
     */

    public String getDuplicateType() {
        return this.duplicateType;
    }
    
    public void setDuplicateType(String duplicateType) {
        this.duplicateType = duplicateType;
    }
    /**       
     *      *            @hibernate.property
     *             column="source_type"
     *             length="20"
     *         
     */

    public String getSourceType() {
        return this.sourceType;
    }
    
    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }
    /**       
     *      *            @hibernate.property
     *             column="source_id"
     *             length="11"
     *         
     */

    public Integer getSourceId() {
        return this.sourceId;
    }
    
    public void setSourceId(Integer sourceId) {
        this.sourceId = sourceId;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("lastName").append("='").append(getLastName()).append("' ");			
      buffer.append("husbandName").append("='").append(getHusbandName()).append("' ");			
      buffer.append("wifeName").append("='").append(getWifeName()).append("' ");			
      buffer.append("address1").append("='").append(getAddress1()).append("' ");			
      buffer.append("address2").append("='").append(getAddress2()).append("' ");			
      buffer.append("city").append("='").append(getCity()).append("' ");			
      buffer.append("state").append("='").append(getState()).append("' ");			
      buffer.append("zip").append("='").append(getZip()).append("' ");			
      buffer.append("email").append("='").append(getEmail()).append("' ");			
      buffer.append("spouseEmail").append("='").append(getSpouseEmail()).append("' ");			
      buffer.append("email2").append("='").append(getEmail2()).append("' ");			
      buffer.append("homePhone").append("='").append(getHomePhone()).append("' ");			
      buffer.append("cellPhone").append("='").append(getCellPhone()).append("' ");			
      buffer.append("workPhone").append("='").append(getWorkPhone()).append("' ");			
      buffer.append("faxPhone").append("='").append(getFaxPhone()).append("' ");			
      buffer.append("duesPaid").append("='").append(getDuesPaid()).append("' ");			
      buffer.append("duplicateId").append("='").append(getDuplicateId()).append("' ");			
      buffer.append("duplicateType").append("='").append(getDuplicateType()).append("' ");			
      buffer.append("sourceType").append("='").append(getSourceType()).append("' ");			
      buffer.append("sourceId").append("='").append(getSourceId()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof Icndata) ) return false;
		 Icndata castOther = ( Icndata ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getLastName()==castOther.getLastName()) || ( this.getLastName()!=null && castOther.getLastName()!=null && this.getLastName().equals(castOther.getLastName()) ) )
 && ( (this.getHusbandName()==castOther.getHusbandName()) || ( this.getHusbandName()!=null && castOther.getHusbandName()!=null && this.getHusbandName().equals(castOther.getHusbandName()) ) )
 && ( (this.getWifeName()==castOther.getWifeName()) || ( this.getWifeName()!=null && castOther.getWifeName()!=null && this.getWifeName().equals(castOther.getWifeName()) ) )
 && ( (this.getAddress1()==castOther.getAddress1()) || ( this.getAddress1()!=null && castOther.getAddress1()!=null && this.getAddress1().equals(castOther.getAddress1()) ) )
 && ( (this.getAddress2()==castOther.getAddress2()) || ( this.getAddress2()!=null && castOther.getAddress2()!=null && this.getAddress2().equals(castOther.getAddress2()) ) )
 && ( (this.getCity()==castOther.getCity()) || ( this.getCity()!=null && castOther.getCity()!=null && this.getCity().equals(castOther.getCity()) ) )
 && ( (this.getState()==castOther.getState()) || ( this.getState()!=null && castOther.getState()!=null && this.getState().equals(castOther.getState()) ) )
 && ( (this.getZip()==castOther.getZip()) || ( this.getZip()!=null && castOther.getZip()!=null && this.getZip().equals(castOther.getZip()) ) )
 && ( (this.getEmail()==castOther.getEmail()) || ( this.getEmail()!=null && castOther.getEmail()!=null && this.getEmail().equals(castOther.getEmail()) ) )
 && ( (this.getSpouseEmail()==castOther.getSpouseEmail()) || ( this.getSpouseEmail()!=null && castOther.getSpouseEmail()!=null && this.getSpouseEmail().equals(castOther.getSpouseEmail()) ) )
 && ( (this.getEmail2()==castOther.getEmail2()) || ( this.getEmail2()!=null && castOther.getEmail2()!=null && this.getEmail2().equals(castOther.getEmail2()) ) )
 && ( (this.getHomePhone()==castOther.getHomePhone()) || ( this.getHomePhone()!=null && castOther.getHomePhone()!=null && this.getHomePhone().equals(castOther.getHomePhone()) ) )
 && ( (this.getCellPhone()==castOther.getCellPhone()) || ( this.getCellPhone()!=null && castOther.getCellPhone()!=null && this.getCellPhone().equals(castOther.getCellPhone()) ) )
 && ( (this.getWorkPhone()==castOther.getWorkPhone()) || ( this.getWorkPhone()!=null && castOther.getWorkPhone()!=null && this.getWorkPhone().equals(castOther.getWorkPhone()) ) )
 && ( (this.getFaxPhone()==castOther.getFaxPhone()) || ( this.getFaxPhone()!=null && castOther.getFaxPhone()!=null && this.getFaxPhone().equals(castOther.getFaxPhone()) ) )
 && ( (this.getDuesPaid()==castOther.getDuesPaid()) || ( this.getDuesPaid()!=null && castOther.getDuesPaid()!=null && this.getDuesPaid().equals(castOther.getDuesPaid()) ) )
 && ( (this.getDuplicateId()==castOther.getDuplicateId()) || ( this.getDuplicateId()!=null && castOther.getDuplicateId()!=null && this.getDuplicateId().equals(castOther.getDuplicateId()) ) )
 && ( (this.getDuplicateType()==castOther.getDuplicateType()) || ( this.getDuplicateType()!=null && castOther.getDuplicateType()!=null && this.getDuplicateType().equals(castOther.getDuplicateType()) ) )
 && ( (this.getSourceType()==castOther.getSourceType()) || ( this.getSourceType()!=null && castOther.getSourceType()!=null && this.getSourceType().equals(castOther.getSourceType()) ) )
 && ( (this.getSourceId()==castOther.getSourceId()) || ( this.getSourceId()!=null && castOther.getSourceId()!=null && this.getSourceId().equals(castOther.getSourceId()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getLastName() == null ? 0 : this.getLastName().hashCode() );
         result = 37 * result + ( getHusbandName() == null ? 0 : this.getHusbandName().hashCode() );
         result = 37 * result + ( getWifeName() == null ? 0 : this.getWifeName().hashCode() );
         result = 37 * result + ( getAddress1() == null ? 0 : this.getAddress1().hashCode() );
         result = 37 * result + ( getAddress2() == null ? 0 : this.getAddress2().hashCode() );
         result = 37 * result + ( getCity() == null ? 0 : this.getCity().hashCode() );
         result = 37 * result + ( getState() == null ? 0 : this.getState().hashCode() );
         result = 37 * result + ( getZip() == null ? 0 : this.getZip().hashCode() );
         result = 37 * result + ( getEmail() == null ? 0 : this.getEmail().hashCode() );
         result = 37 * result + ( getSpouseEmail() == null ? 0 : this.getSpouseEmail().hashCode() );
         result = 37 * result + ( getEmail2() == null ? 0 : this.getEmail2().hashCode() );
         result = 37 * result + ( getHomePhone() == null ? 0 : this.getHomePhone().hashCode() );
         result = 37 * result + ( getCellPhone() == null ? 0 : this.getCellPhone().hashCode() );
         result = 37 * result + ( getWorkPhone() == null ? 0 : this.getWorkPhone().hashCode() );
         result = 37 * result + ( getFaxPhone() == null ? 0 : this.getFaxPhone().hashCode() );
         result = 37 * result + ( getDuesPaid() == null ? 0 : this.getDuesPaid().hashCode() );
         result = 37 * result + ( getDuplicateId() == null ? 0 : this.getDuplicateId().hashCode() );
         result = 37 * result + ( getDuplicateType() == null ? 0 : this.getDuplicateType().hashCode() );
         result = 37 * result + ( getSourceType() == null ? 0 : this.getSourceType().hashCode() );
         result = 37 * result + ( getSourceId() == null ? 0 : this.getSourceId().hashCode() );
         return result;
   }   





}
